package com.pd.backend.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 组织(部门)实体请求类
 * @Auther : 菜鸡编程
 * @Date:2023/1/12
 * @Description:
 * @VERSON:1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "组织(部门)实体请求类DTO")
public class PdCoreOrgDto {
    /**
     * id
     */
    @ApiModelProperty(value = "id", required = true)
    private long id;

    /**
     * 父id
     */
    @ApiModelProperty(value = "父id", required = true)
    private long parentId;
    /**
     * 组织名称
     */
    @ApiModelProperty(value = "组织名称", required = true)
    private String name;

    /**
     * 树结构(0为根节点,1为0的子节点,2为1的子节点,以此类推)
     */
    @ApiModelProperty(value = "树结构", required = true)
    private String treePath;

    /**
     * 组织类型 1为分公司，2为一级转运中心 3为二级转运中心 4为网点
     */
    @ApiModelProperty(value = "组织类型", required = true)
    private long orgType;
    /**
     * 省
     */
    @ApiModelProperty(value = "省", required = true)
    private long provinceId;
    /**
     * 市
     */
    @ApiModelProperty(value = "市", required = true)
    private long cityId;
    /**
     * 区
     */
    @ApiModelProperty(value = "区", required = true)
    private long countyId;
    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址", required = false)
    private String address;
    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话", required = false)
    private String contractNumber;
    /**
     * 简称
     */
    @ApiModelProperty(value = "简称", required = false)
    private String abbreviation;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", required = false)
    private String describe;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    private Integer status;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = false)
    private long sortValue;

}
